package com.dmai.capacity.platform.user.pojo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class InstitutionVO implements Serializable {
    private static final long serialVersionUID = 1L;


    private String id;

    private String code;

    private String name;

    private String uscc;

    private String legalPerson;

    private String legalPersonMobile;

    private String orgRegArea;

    private String orgRegAreaName;

    private String orgRegAddress;

    private String orgTeachingArea;

    private String orgTeachingAreaName;

    private String orgTeachingAddress;

    private String examVenue;

    private String examVenueName;

    private String contactPerson;

    private String contactMobile;

    private String contactEmail;

    private String adminAccount;

//    private String adminPassword;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date registerTime;

    private Date updateTime;

    private Integer authState;

    public String getAuthStateStr() {
        if (authState == 1) {
            return "已通过";
        } else if (authState == -1) {
            return "已驳回";
        } else if (authState == 0) {
            return "待审核";
        } else {
            return "";
        }
    }

    private Date authTime;

    private Long authUserid;

    private String authUsername;

    private String authRemark;

    private Integer status;

    private String tenantId;


}